/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.domain;

/**
 *
 * @author davidsciacchettano
 */
public class Item implements java.io.Serializable{
    private int itemId;
    private String Manufacturer;
    private String Product;
    private int Quantity;
    private float Price;
    
    public Item() {
        itemId = -1;
        Manufacturer = "none";
        Product = "none";
        Quantity = -1;
        Price = 0f;
        
    }   

    public Item(int id, String manufacturer, String product, int quantity,
            float price) {
        this.itemId = id;
        this.Manufacturer = manufacturer;
        this.Product = product;
        this.Quantity = quantity;
        this.Price = price;      
    }
    
    public String getManufacturer() {
        return Manufacturer;
    }
    
    public void setManufacturer(String Manufacturer) {
        this.Manufacturer = Manufacturer;
    }  

    public float getPrice() {
        return Price;
    }

    public String getProduct() {
        return Product;
    }

    public int getQuantity() {
        return Quantity;
    }

    public int getItemId() {
        return itemId;
    }    

    public void setId(int id) {
        this.itemId = id;
    }
    
    public void setPrice(float Price) {
        this.Price = Price;
    }

    public void setProduct(String Product) {
        this.Product = Product;
    }

    public void setQuantity(int Quantity) {
        this.Quantity = Quantity;
    }
    
    @Override
    public String toString() {
        return "Item{" + "Manufacturer=" + Manufacturer + ", Product=" + Product + ", Quantity=" + Quantity + ", Price=" + Price + '}';
    }
        
}
